// Podcasting section/link on Writing settings page

.podcasting-details__link {
	&:not( .is-enabled ) {
		.podcasting-details__link-button {
			padding-left: 24px;
			padding-right: 24px;
		}
	}

	.podcasting-details__link-action-container {
		display: flex;
		align-items: flex-start;

		.podcasting-details__link-info {
			flex-grow: 1;
			color: var( --color-text );
		}

		.podcasting-details__link-button {
			color: var( --color-neutral-50 );
			font-weight: 600;
			flex-shrink: 0;
			margin-left: 12px;
			// For viewports/translations when the text is taller than the button
			align-self: center;
		}
	}

	.podcasting-details__link-feed-label {
		font-weight: 600;
		margin-bottom: 5px;
	}
}

.podcasting-details__publish-wrapper {
	display: flex;
	align-items: flex-start;
	margin-bottom: 16px;
}

.podcasting-details__publish-notice {
	position: relative;
	background: var( --color-neutral-0 );
	border-radius: 2px;
	align-self: stretch;
	padding: 6px;
	font-size: $font-body-small;
	text-align: left;
	// Center contents vertically
	// Note this element contains a <span> container to ensure normal
	// display (whitespace) between text items
	display: flex;
	flex-grow: 1;
	align-items: center;

	.gridicons-microphone {
		flex-shrink: 0;
		margin-right: 6px;
		color: var( --color-podcasting );
	}

	a {
		color: var( --color-neutral-70 );
		text-decoration: underline;
	}

	.podcasting-details__support-link {
		margin-left: 4px;
	}
}

.podcasting-details__publish-button {
	color: var( --color-neutral-50 );
	font-weight: 600;
	flex-shrink: 0;
	margin-left: 12px;
	// For viewports/translations when the text is taller than the button
	align-self: center;
}

.podcasting-details__link.is-enabled {
	.podcasting-details__link-feed {
		margin-top: 20px;
	}
}

@include breakpoint-deprecated( '<800px' ) {
	.podcasting-details__link.is-enabled .podcasting-details__link-action-container,
	.podcasting-details__publish-wrapper {
		display: block;
		text-align: right;
	}
	.podcasting-details__link.is-enabled .podcasting-details__link-info,
	.podcasting-details__publish-notice {
		margin-bottom: 8px;
	}
}

// Podcasting details page

.podcasting-details__wrapper .form-setting-explanation,
.podcasting-details__category-wrapper .form-setting-explanation {
	margin-bottom: 6px;
}

.podcasting-details__category-wrapper .notice.is-compact {
	width: 100%;
}

.podcasting-details__category-wrapper.card {
	width: 100%;
	margin-bottom: 0;
	padding-bottom: 0;
}

.podcasting-details__title-subtitle-wrapper {
	@include breakpoint-deprecated( '>960px' ) {
		float: left;
		width: 75%;
	}
}

.podcasting-details__wrapper {
	.podcast-cover-image-setting {
		float: left;
		margin-right: 24px;
	}

	.form-select {
		@include breakpoint-deprecated( '<480px' ) {
			width: 100%;
		}
	}

	&.is-disabled {
		background-color: var( --color-neutral-0 );
		border-color: var( --color-neutral-10 );
	}

	&.is-disabled label,
	&.is-disabled .form-setting-explanation {
		color: var( --color-neutral-20 );
	}

	&.is-disabled .form-text-input,
	&.is-disabled .form-textarea {
		color: var( --color-neutral-20 );
		border-color: var( --color-neutral-10 );
	}

	.podcasting-details__save-button {
		float: right;
	}
}

.podcasting-details__private-site,
.podcasting-details__no-permissions {
	.site-settings .podcasting-details__link & {
		p {
			margin-bottom: 0.75em;
		}
		// Necessary to state this again for specificity
		p:last-child {
			margin-bottom: 0;
		}
	}
	p:last-child {
		margin-bottom: 0;
	}
}

.podcasting-details__disable-podcasting {
	color: var( --color-text-subtle );
	text-align: center;
	width: 80%;
	margin: 0 auto;

	.button {
		margin: 12px 0 6px;
	}
}

.podcasting-details__support-link {
	text-decoration: underline;
	white-space: nowrap;
}
